from django.conf.urls.defaults import *
from django.conf import settings

urlpatterns = patterns('',
    # Example:
    # (r'^newtest/', include('newtest.foo.urls')),
    (r'^add/$', 'newtest.add.index'),
    (r'^list/$', 'newtest.list.index'),
    (r'^csv/(?P<filename>\w+)/$', 'newtest.csv_test.output'),
    (r'^login/$', 'newtest.login.login'),
    (r'^logout/$', 'newtest.login.logout'), 
    (r'^jihm/$', 'newtest.jihm.views.index'),
    (r'^jihm/(?P<pagename>\w+)/$', 'newtest.jihm.views.index'),
    (r'^jihm/(?P<pagename>\w+)/edit/$', 'newtest.jihm.views.edit'),
    (r'^jihm/(?P<pagename>\w+)/save/$', 'newtest.jihm.views.save'),
    (r'^address/',include('newtest.address.urls')),
    (r'^site_media/(?P<path>.*)$','django.views.static.serve',
        {'document_root':settings.STATIC_PATH}),
    (r'^calendar/$', 'django.views.generic.simple.direct_to_template',
        {'template': 'my_calendar/calendar.html'}),
    
    (r'^jobs/$', 'newtest.jobs.views.index'),
    (r'^jobs/(?P<job_id>\d+)/$', 'newtest.jobs.views.detail'),
    
    # Uncomment this for admin:
    (r'^admin/', include('django.contrib.admin.urls')),
)
